package chen.yi.component.operate.log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 业务日志实体类
 * @author huat
 **/
@Setter
@Getter
@TableName(value = "operate_log")
public class OperateLog {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 模块名
     */
    @TableField(value = "module_name")
    private String moduleName;
    /**
     * 方法名
     */
    @TableField(value = "method_name")
    private String methodName;
    /**
     * 请求方式
     */
    @TableField(value = "request_method")
    private String requestMethod;
    /**
     * 操作类型
     */
    @TableField(value = "business_type")
    private String businessType;
    /**
     * 操作账户
     */
    @TableField(value = "operation_username")
    private String operationUsername;

    /**
     * 请求参数
     */
    @TableField(value = "request_params")
    private String requestParams;
    /**
     * 执行结果
     */
    @TableField(value = "execute_result")
    private String executeResult;
    /**
     * 错误信息
     */
    @TableField(value = "error_message")
    private String errorMessage;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    private LocalDateTime operateTime;
}
